package com.y.ari.common;

/**
 * 异常获取
 */
public class AriException extends RuntimeException{

    private static final long serialVersionUID = 5565760508056698922L;

    private String errMessage;

    public AriException() {
        super();
    }

    public AriException(String errMessage) {
        super(errMessage);
        this.errMessage = errMessage;
    }

    public String getErrMessage() {
        return errMessage;
    }

    public static void cast(String errMessage){
        throw new AriException(errMessage);
    }

}
